package com.container.app.testclasses.providerexample;

import com.container.app.ContainerProvider;
import com.container.app.annotations.Component;
import com.container.app.annotations.Inject;
import com.container.app.annotations.InstanceTag;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 7/13/12
 * Time: 9:46 AM
 */
@SuppressWarnings("UnusedDeclaration")
@Component
public class RandomPickingIntProvider implements ContainerProvider<RandomPicking> {

    Integer max;

    @Inject
    public void setMax(@InstanceTag("max") Integer max) {
        this.max = max;
    }

    public RandomPicking get() {
        RandomPickingInt randomPicking = new RandomPickingInt();
        randomPicking.setMax(max);
        return randomPicking;
    }
}
